
************************************************************************************************
* Codebook for Love Thy (Elected) Neighbor? Residential segregation, political representation 
* and local public goods by Oskari Harjunen, Tuukka Saarimaa and Janne Tukiainen
************************************************************************************************

*Data zipcode_2012_estimation.dta
la var candsha "Share of all candidates in the municipality"
la var elecd "Any councilors (0/1)"
la var elecsha "Share of all councilors in the municipality"
la var stdincomepc "Standardized mean income"
la var educmscpc "Share highly-educated"
la var popsha "Share of municipal total population"
la var kuntaidelec "Municipality id"
la var encrypted "Encrypted due to too few people"
la var diffmun "Zipcode divided into two municipalities"

*Data EST_pollingdistrict_level_2012.dta
la var vsha_poldist100 "Vote share out all votes given in the home polling district"
la var d_oma_aa "Own district (0/1)"
la var doma_restime "Own district x residence spell"
la var doma_inc "Own district x incumbent"
la var similarity "Voter similarity"
la var ownpartyvotesha "Own party vote share"
la var kuntaidelec "Municipality id"
la var hetu "Candidate id" 
la var idaanialuefe "Polling district id"

*Data: use causal_estimation_data.dta
la var elected "Elected"
la var age "Age"
la var male "Male (0/1)"
la var child12 "Children (0/1)"
la var incumbent "Incumbent (0/1)"
la var child12numb "Number of children"
la var student "Student (0/1)"
la var entrepreneur "Entrepreneur (0/1)"
la var unemployed "Unemployed (0/1)"
la var highprofessional "Ma (0/1)"
la var sch_seatsha "School seat share"
la var dist_sch_dif "Change in school distance (km)"
la var dist_sch "Distance to school (km)"
la var dist_nnsch "Distance between the school closest to the candidate and the closest school to this school "
la var pupils "Number of pupils in school"
la var pupilsha "Schools pupil share of all pupils in municipality"
la var sch_repres "School has representation (0/1)"
la var sch_votesha "School vote share"
la var majority "School has seat majority"
la var moved "Candidate moved during election term"
la var nodup1 "Lottery sample"
la var nodup2 "One vote margin sample"
la var kuntaidelec "Municipality id"
la var elecyear "Election year"
la var party "Candidate's party'"
la var mun_closed "Municipality has closures"
la var largestparty "Candidate is from the largest party in council"
la var councilsize "Municipality council size"
la var closed_sch "School was closed during election term"

*Data: zipcode_sorting.dta
la var log_1_2 "Log number of residents in bottom two income deciles"
la var log_3_8 "Log number of residents in 3-8 income deciles"
la var log_9_10 "Log number of residents in top two income deciles"
la var logpop "Log population"

la var he_vakiy "Population"
la var hr_pi_tul "Residents in deciles 1 and 2"
la var hr_ke_tul "Residents in deciles 3-8"
la var hr_hy_tul "Residents in deciles 9 and 10"
la var ko_yl_kork "Highly-educated residents"

la var tunn "School id"
la var closed_sch "School is closed during the analysis period (0/1)"
la var opp16 "Number of pupils in schools"
la var closeyear "Year of closure"
la var zipcode "Zipcode id"
la var year "Year"
la var schoolnumb "Number of schools in zipcode"

la var _Ttimetotre_1 "t = -3"
la var _Ttimetotre_2 "t = -2"
la var _Ttimetotre_4 "t = 0"
la var _Ttimetotre_5 "t = 1"
la var _Ttimetotre_6 "t = 2"
la var _Ttimetotre_7 "t = 3"
   
*Data: 1km_grids_2012_estimation.dta
la var candsha "Share of all candidates in the municipality"
la var elecd "Any councilors (0/1)"
la var elecsha "Share of all councilors in the municipality"
la var stdincomepc "Mean income"
la var educmscpc "Share highly educated"
la var popsha "Share of municipal total population"
la var kuntaidelec "Municipality id"
la var encrypted_inc "Encrypted due to too few people"

*Data: polling_district_socio.dta
la var pd_stdincpc "Mean income in polling district"
la var pd_msc_sha "Share highly-educated in polling distric"
la var turnout "Turnout"
la var kuntaidelec "Municipality id"
la var pd_pop "Population in polling district"

  